package com.ctshk.rpc.order.goods.dto.resp;

import com.ctshk.rpc.order.goods.dto.CommodityAttributeDTO;
import com.ctshk.rpc.order.goods.dto.CommodityFileDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * TODO
 *
 * @author huangxiansheng
 * @date 2021/5/20 10:46 上午
 */
@Data
@ApiModel(value = "CommodityInfoDTO对象", description = "商品首页二级分类列表")
public class CommodityInfoResp implements Serializable {

    @ApiModelProperty(value = "商品ID")
    private Long id;

    @ApiModelProperty(value = "商品成本")
    private List<CommodityCostResp> commodityCost;

    @ApiModelProperty(value = "商品成本属性 OR 商品成本 一个商品二者只会存在其一")
    private List<CommodityCostAttributeResp> commodityCostAttributes;

    @ApiModelProperty(value = "商品属性表")
    private CommodityAttributeDTO commodityAttribute;

    @ApiModelProperty(value = "标签类型:1：新品；2：限时特惠")
    private Integer labelType;

    @ApiModelProperty(value = "商品文件")
    private List<CommodityFileDTO> commodityFileList;

    @ApiModelProperty(value = "分类编码")
    private String classificationNumber;

    @ApiModelProperty(value = "分类名称")
    private String classificationName;

    @ApiModelProperty(value = "分类排序")
    private Integer classificationSort;

    @ApiModelProperty(value = "商品分类名称")
    private String commodityClassificationName;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品分类id")
    private Long commodityClassificationId;

    @ApiModelProperty(value = "商品销量")
    private String sales;

}
